<script setup>
import data from './data.json'
import Applica from './components/Applica'
import { registerConfig as config } from './utils/Applica-config';
import { provide, ref } from 'vue'
const state=ref(data)
provide('config', config) //将组件的配置项传递给子组件

const formData=ref({
  username:'zfig',
  password:'123456'
})
</script>
<template>
  <div id="app"> 
    <Applica v-model="state" :formData="formData"></Applica>
    <!-- <router-view></router-view> -->
  </div>
</template>
<style>
</style>